import axios from 'axios';

const api = axios.create({ baseURL: 'https://kgj.100861.net/api', timeout: 120000 });
// const api = axios.create({ baseURL: 'http://192.168.1.5:8080', timeout: 120000 });

/// 获取token
export async function marketSelectToken(data) {
  var res = await api.post('/card/notify/dataNotifyHandler', data);
  return res.data;
}
/// 获取data
export async function marketSelectData(params) {
  var res = await api.get('/card/client/market/selectData', { params });
  return res.data;
}
/// 获取权益领取
export async function marketReceiveAward(params) {
  var res = await api.get('/card/client/market/receiveAward', { params });
  return res.data;
}

/// 获取验证码
export async function marketVerifyCode(params) {
  var res = await api.get('/card/client/market/verifyCode', { params });
  return res.data;
}

/// 提交
export async function marketOfferOrder(params) {
  var res = await api.get('/card/client/market/offerOrder', { params });
  return res.data;
}
